import os
from typing import Dict
from dotenv import load_dotenv

# 加载.env文件
load_dotenv()

class Config:
    # LLM配置
    LLM_CONFIG: Dict = {
        "llm_type": os.getenv("LLM_TYPE", "gitee_ai"),
        "api_key": os.getenv("LLM_API_KEY"),
        "model": os.getenv("LLM_MODEL", "internlm3-8b-instruct")
    }
    
    # TTS配置
    TTS_CONFIG: Dict = {
        "tts_type": os.getenv("TTS_TYPE", "index_tts"),
        "api_key": os.getenv("TTS_API_KEY")
    }
    
    # 角色配置示例
    CHARACTER_CONFIGS: list = [
        {
            "name": "主持人",
            "personality": "专业且友好",
            "role": "播客主持人"
        },
        {
            "name": "专家",
            "personality": "知识渊博且严谨",
            "role": "领域专家"
        }
    ]